package com.ybu.oodd.HandleException;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class GlobalExceptionHandler {

    /*@ExceptionHandler(javax.mail.SendFailedException.class)
    public ResponseEntity<String> handleSendFailedException(javax.mail.SendFailedException ex) {
        // 返回自定义消息或者进行其他处理
        return new ResponseEntity<>("无效的地址,请检查收件人邮箱地址是否正确", HttpStatus.BAD_REQUEST);
    }*/
}